package po;

//历史招聘信息
public class EmpHistory {
	private int ID;
	
	//用户和家教的信息
	private Integer tutorID;
	private Integer costomerID;
	
	//种类-招聘还是订单
	private String kind;
	
	//最终的信息
	private String type; 
	private String course; 
	private String date; 
	private String address; 
	private double price; 	 
	private String needOrPresentation;  
	
	//评价
	private String appraise;
	
	//评分
	private Integer mark; //(0-10) 五分下为差评
	private String status;
	public EmpHistory() {
		
	}
	public EmpHistory(Order ord) {
		tutorID = ord.getPromulgatorID();
		costomerID = ord.getCostomerID();
		kind = "订单";
		type = ord.getType();
		course = ord.getCourse();
		date = ord.getDate();
		address = ord.getAddress();
		price = ord.getPrice();
		needOrPresentation = ord.getNeedOrPresentation();
		status = "0";
	}
	
	public EmpHistory(Employment emp) {
		tutorID = emp.getPromulgatorID();
		costomerID = emp.getCostomerID();
		kind = "招聘";
		type = emp.getType();
		course = emp.getCourse();
		date = emp.getDate();
		address = emp.getAddress();
		price = emp.getPrice();
		needOrPresentation = emp.getNeedOrPresentation();
		status = "0";
	}
	
	public int getID() {
		return ID;
	}

	public void setID(int iD) {
		ID = iD;
	}

	public Integer getTutorID() {
		return tutorID;
	}

	public void setTutorID(Integer tutorID) {
		this.tutorID = tutorID;
	}

	public Integer getCostomerID() {
		return costomerID;
	}

	public void setCostomerID(Integer costomerID) {
		this.costomerID = costomerID;
	}

	public String getKind() {
		return kind;
	}

	public void setKind(String kind) {
		this.kind = kind;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCourse() {
		return course;
	}

	public void setCourse(String course) {
		this.course = course;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getNeedOrPresentation() {
		return needOrPresentation;
	}

	public void setNeedOrPresentation(String needOrPresentation) {
		this.needOrPresentation = needOrPresentation;
	}

	public String getAppraise() {
		return appraise;
	}

	public void setAppraise(String appraise) {
		this.appraise = appraise;
	}

	public Integer getMark() {
		return mark;
	}

	public void setMark(Integer mark) {
		this.mark = mark;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
	
	
}
